package com.lrf.lawyermanager.dongao.service.impl;

import com.lrf.lawyermanager.dongao.entity.Lawyer;
import com.lrf.lawyermanager.dongao.mapper.ILawyerMapper;
import com.lrf.lawyermanager.dongao.service.ILawyerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 律师档案业务接口实现类
 * @author lrf
 * @version 1.0
 * @classname LawyerServiceImpl
 * @date 2023/1/2 10:51
 */
@Service
public class LawyerServiceImpl implements ILawyerService {
    @Autowired
    ILawyerMapper lawyerMapper;

    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 添加成功返回1，否则返回0
     */
    @Override
    public int addLawyer(Lawyer lawyer) {
        return lawyerMapper.insertLawyer(lawyer);
    }
}
